<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:s="http://jboss.com/products/seam/taglib"
	xmlns:a="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:c="http://java.sun.com/jstl/core">

	<rich:modalPanel id="publicarAnuncioModal" autosized="true"
		width="400" showWhenRendered="#{anuncios.mostrarPublicar}">
		<f:facet name="header">
			<h:panelGroup>
				<h:outputText value="#{msg.tituloPublicarAnuncio}"></h:outputText>
			</h:panelGroup>
		</f:facet>
		<h:form>
			<h:panelGrid columns="1">
				<h:outputLabel value="#{msg.publicarAnuncioPregunta}" />
				<rich:spacer height="50" />
				<h:panelGrid columns="2">
					<a:commandButton value="#{msg.aceptar}"
						actionListener="#{anuncios.publicarAnuncio}"
						reRender="publicarAnuncioModal,idTabBandeja" />
					<a:commandButton value="#{msg.cerrar}" immediate="true"
						actionListener="#{anuncios.cerrarModal}"
						reRender="publicarAnuncioModal" />
				</h:panelGrid>
			</h:panelGrid>
		</h:form>
	</rich:modalPanel>

</ui:composition>